package com.cmbchina.ccd.modle;

import lombok.Data;

/**
 * @Description:
 * @author chenchen
 * @date 2021/10/24 17:48
 */
@Data
public class ReportDataTo implements Comparable {
    private Integer id;
    private String value;
    private Integer activityId;
    private Integer indexType;
    private Integer dateType;
    private String dateNum;

    @Override
    public int compareTo(Object o) {
        if(o instanceof ReportDataTo) {
            ReportDataTo reportDataTo = (ReportDataTo)o;
            return this.dateNum.compareTo(reportDataTo.dateNum);
        } else {
            return 1;
        }
    }
}
